import request from '@/sheep/request';

export default {
	//我的酒库列表
	winesList: (params) =>
		request({
			url: 'wines.wines/lists',
			method: 'GET',
			params,
		}),
	//我的酒库首页
	wineIndex: (params) =>
		request({
			url: 'wines.wines/index',
			method: 'GET',
			params,
		}),
	//商品详情接口
	goodDetail: (params) =>
		request({
			url: 'goods.goods/detail',
			method: 'GET',
			params,
		}),

	//酒库领取提交订单前的计算
	calc: (data) =>
		request({
			url: 'order.order/calcWine',
			method: 'POST',
			data,
		}),

	//酒库领取提交订单
	create: (data) =>
		request({
			url: 'order.order/createWine',
			method: 'POST',
			data,
		}),

	//分享赠与
	shareWine: (data) =>
		request({
			url: 'wines.wines/getShareId',
			method: 'POST',
			data,
		}),
	//分享赠与
	getShareInfo: (data) =>
		request({
			url: 'wines.wines/getShareInfo',
			method: 'POST',
			data,
		}),
	//酒库领取订单记录列表
	claimOrdersRecord: (params) =>
		request({
			url: 'wines.wines/orders',
			method: 'GET',
			params,
		}),
	//酒库赠与成功记录
	sharesOrdersRecord: (params) =>
		request({
			url: 'wines.wines/shares',
			method: 'GET',
			params,
		}),
		
	//领取分享的酒
	getShareWines: (params) =>
		request({
			url: 'wines.wines/shareDraw',
			method: 'GET',
			params,
		}),

};